import { Controller, Get, UseGuards } from '@nestjs/common';
import { MicrosoftBearerGuard } from 'src/auth/microsoft-bearer.guard';
import { PositionService } from './position.service';

@Controller('position')
export class PositionController {
  constructor(private readonly positionService: PositionService) {}

  @Get('getAll')
  @UseGuards(MicrosoftBearerGuard)
  async getAll() {
    return await this.positionService.getAll();
  }
}
